package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Voucher;
import org.darkforest.model.VoucherSearchBean;

import java.util.List;

import java.util.List;
import java.util.Map;

@DBMapper
public interface VoucherMapper {
    int deleteByPrimaryKey(Integer voucherId);

    int insert(Voucher record);

    int insertSelective(Voucher record);

    Voucher selectByPrimaryKey(Integer voucherId);

    int updateByPrimaryKeySelective(Voucher record);

    int updateByPrimaryKey(Voucher record);

    List<Voucher> findMyValidVoucher(Map<String, Object> map);

    int updateOverTimeVoucher(Voucher record);

    List<Voucher> selectByVoucherSearchBean(VoucherSearchBean record);

    List<Voucher> selectByVoucherCond(Voucher record);

    List<Voucher>  selectWillExpire();

}